package net.xo68.destiny.core.index.bplustree;

/**
 * B+tree条目
 * @param <K>
 * @param <V>
 * @author wuxie
 * @version 2020-12-30
 */
public class BPlusLeafEntry<K extends Comparable<K>, V>  implements IBPlusEntry<K,V> {

    private K key;

    private V value;

    public BPlusLeafEntry(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public BPlusLeafEntry() {
    }

    @Override
    public K getKey() {
        return key;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "{" + key + "," + value + '}';
    }
}
